class MonthPaymentModel {
  final String date;
  final String amount;

  MonthPaymentModel(this.date, this.amount);

  MonthPaymentModel.fromJson(Map<String, dynamic> json)
      : date = (json['date'] ?? '').toString(),
        amount = (json['amount'] ?? '-').toString();
}

class MonthPaymentCategoryModel {
  final String category;
  final double amount;
  double percent;

  MonthPaymentCategoryModel(this.category, this.amount);

  MonthPaymentCategoryModel.fromJson(Map<String, dynamic> json)
      : category = (json['category'] ?? 0),
        amount = (json['amount'] ?? 0.0);

}
